import { createApp } from 'vue'
import App from './App.vue'
import router from "./router";
import store from "./store";

const app = createApp(App);

// style
import "@/assets/style/index.scss";

// element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import 'element-plus/lib/locale/lang/zh-cn'
import locale from 'element-plus/lib/locale/lang/zh-cn'
import * as ElIcons from '@element-plus/icons-vue'
for (const name in ElIcons) {
  app.component(name, (ElIcons as any)[name])
}
app.use(ElementPlus, { locale })

//svgIcon
import svgIcon from '@/components/SvgIcon/index.vue'
app.component('svg-icon', svgIcon)

app.use(router,store).mount('#app')
